//
//  CTUserPublishTableListView.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/5/25.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CTFollowList,CTComment,CTListDetailUser,CTUserSuggestionItem,CTTopic;
@protocol CTUserPublishTableListViewDelegate;

@interface CTUserPublishTableListView : UIView

@property (nonatomic, setter=setFavDataArray:)   NSArray * pubDataArray;
@property (nonatomic, setter=setUserFavDataArray:)   NSArray * pubUserDataArray;
@property (nonatomic, setter=setUserRecommendDataArray:) NSArray * recommendListArray;
@property (nonatomic, assign) id<CTUserPublishTableListViewDelegate>delegate;


//在user controller里面弄用
@property(nonatomic,setter=setTableViewScroll:)BOOL scrollEnabled;


-(void)refresh;
-(void)refreshPullDownEnd;
-(void)refreshPullUpEnd;
-(void)reloadData;

-(void)setHeadView:(UIView *)headView;

@end

@protocol CTUserPublishTableListViewDelegate <NSObject>


//刷新
-(void)refreshControlPullDown:(CTUserPublishTableListView *)view;
-(void)refreshControlPullUp:(CTUserPublishTableListView *)view;



//发现列表cell回调

/**
 *@brief 点击评论总数
 */
- (void)userPublishTableListCommentCountAction:(CTUserPublishTableListView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击评论第一条
 */
- (void)userPublishTableListCommentHitFirstLabelAction:(CTUserPublishTableListView *) view withItem:(CTFollowList *)item;
/**
 *@brief 点击评论第二条
 */
- (void)userPublishTableListCommentHitSecondLabelAction:(CTUserPublishTableListView *) view withItem:(CTFollowList *)item;
/**
 *@brief 点击评论第一条头像
 */
- (void)userPublishTableListCommentHitFirstHeadAction:(CTUserPublishTableListView *)view withItem:(CTComment *) item;
/**
 *@brief 点击评论第二条头像
 */
- (void)userPublishTableListCommentHitSecondHeadAction:(CTUserPublishTableListView *)view withItem:(CTComment *)item;
/**
 *@brief 点击头像
 */
- (void)userPublishTableListHitHeadAction:(CTUserPublishTableListView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击大图
 */
- (void)userPublishTableListHitPicImageBtnAction:(CTUserPublishTableListView *)view withItem:(CTFollowList *)item withImageView:(UIImageView *)picImageView;
/**
 *@brief 点赞
 */
- (void)userPublishTableListHitFavourBtnAction:(CTUserPublishTableListView *)view withItem:(CTFollowList *)item withBool:(BOOL) favBool;
/**
 *@brief 点击评论按钮
 */
- (void)userPublishTableListHitCommentBtnaction:(CTUserPublishTableListView *) view withItem:(CTFollowList *)item;
/**
 *@brief 点击分享按钮
 */
- (void)userPublishTableListHitShareBtnAction:(CTUserPublishTableListView *) view withItem:(CTFollowList *)item withImage:(UIImage*)img;
/**
 *@brief 点击更多按钮
 */
- (void)userPublishTableListHitMoreBtnAction:(CTUserPublishTableListView *) view withItem:(CTFollowList *)item;
/**
 *@brief 点击点赞的人的头像
 */
- (void)userPublishTableListHitFavBtnHeadAction:(CTUserPublishTableListView *)view withItem:(CTListDetailUser *)item;
/**
 *@brief 点击关注按钮
 */
- (void)userPublishTableListHitAttentionBtnAction:(CTUserPublishTableListView *) view withItem:(CTFollowList *)item withBool:(BOOL) attenBool;
/**
 *@brief 点击话题
 */
- (void)userPublishTableListHitTopicBtnAction:(CTUserPublishTableListView *) view withItem:(CTTopic *)item;


- (void)userPublishTableListScrollViewDidScroll:(UIScrollView *)scrollView;

//推荐cell回调

/**
 *@brief 点击关注按钮
 */
- (void)userPublishTableListRecommendHitAttentionBtnAction:(CTUserPublishTableListView *) view withItem:(CTUserSuggestionItem *)item;
/**
 *@brief 点击头像
 */
- (void)userPublishTableListRecommendHitHeadAction:(CTUserPublishTableListView *)view withItem:(CTUserSuggestionItem *)item;


@end
